<!DOCTYPE html>


<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="layouts::header"></head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div>
    <h3>&nbsp</h3>
</div>
<div class="distance">
    <h3>项目列表</h3>
    <hr>
    <!--新增项目按钮-->
    <a th:href="@{/borrows/new}">新增借书</a>
    <br>
    <table>
        <thead>
        <tr>
        <tr>
            <th>借书人</th>
            <th>被借书籍</th>
            <th>描述</th>
            <th>时间</th>
            <th>动作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="aBorrow :${borrows}">
            <td th:text="${aBorrow.name}"></td>
            <td th:text="${aBorrow.stage}"></td>
            <td th:text="${aBorrow.description}"></td>
            <td th:text="${aBorrow.author}"></td>
            <td>
                <a th:href="@{/borrows/update(id=${aBorrow.borrowId})}" class="btn btn-info btn-sm">更新</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>